package ltd.hanamaki.unittest.testng.demo03;

import org.testng.annotations.Test;

public class DependenciesTest {

    /* 假如想测试一个网页上的项目中的退出功能 */
    @Test
    public void open_Browser() {
        System.out.println("打开浏览器");
    }
    @Test(dependsOnMethods = {"open_Browser"})
    public void login() {
        System.out.println("登录");
    }
    @Test(dependsOnMethods = {"login"})
    public void logout() {
        System.out.println("退出");
    }

}
